package com.txhy.certificatechain.model.bean;

import com.github.promeg.pinyinhelper.Pinyin;

import java.io.Serializable;
import java.util.List;

/*
 * -----------------------------------------------------------------
 * Copyright (C) 2018-2030, by your company, All rights reserved.
 * -----------------------------------------------------------------
 * 文    件: MailListBean.java
 * 作    者: 侯建军
 * 版    权: 1.0.0
 * 描    述:
 * 创建时间: 2018/9/19 17:35
 * 更新时间：2018/9/19 17:35
 * -----------------------------------------------------------------
 * 2018/9/19 17:35: 创建 MailListBean.java (侯建军);
 * -----------------------------------------------------------------
 */
public class MailListBean implements Serializable {
    /**
     * status : 200
     * msg : 成功
     * data : [{"phone":"15513646261","schedule":1,"status":1,"meid":"863542040352095","phoneModel":"Android","cardNo":"411121198808153554","cardFaceUrl":"/group1/M00/00/10/wKgBm1uGX-CAE1cAAAAdKtoJRgA181.jpg","cardConUrl":"/group1/M00/00/10/wKgBm1uGX-2AagD_AAAV-8QpngM333.jpg","cardName":"贾成龙","sex":"男","race":"汉","birthday":"19880815","cardAddress":"河南省舞阳北舞波镇贾湖村198号","cardTerm":"20060829-","belongTo":"桐乡市公安局","avatar":"/group1/M00/00/0D/wKgBm1t7bCmAWkXPAAED6njKZp0657.jpg","firstFaceUrl":"/group1/M00/00/10/wKgBm1uGYAyAIkc2AAEbiN1x_a8258.jpg","secondFaceUrl":"0","thirdlyFaceUrl":"/group1/M00/00/10/wKgBm1uGYAyAIkc2AAEbiN1x_a8258.jpg","id":907125514097664,"createTime":"2018-08-29 16:58:22"}]
     */

    private int status;
    private String msg;
    /**
     * phone : 15513646261
     * schedule : 1
     * status : 1
     * meid : 863542040352095
     * phoneModel : Android
     * cardNo : 411121198808153554
     * cardFaceUrl : /group1/M00/00/10/wKgBm1uGX-CAE1cAAAAdKtoJRgA181.jpg
     * cardConUrl : /group1/M00/00/10/wKgBm1uGX-2AagD_AAAV-8QpngM333.jpg
     * cardName : 贾成龙
     * sex : 男
     * race : 汉
     * birthday : 19880815
     * cardAddress : 河南省舞阳北舞波镇贾湖村198号
     * cardTerm : 20060829-
     * belongTo : 桐乡市公安局
     * avatar : /group1/M00/00/0D/wKgBm1t7bCmAWkXPAAED6njKZp0657.jpg
     * firstFaceUrl : /group1/M00/00/10/wKgBm1uGYAyAIkc2AAEbiN1x_a8258.jpg
     * secondFaceUrl : 0
     * thirdlyFaceUrl : /group1/M00/00/10/wKgBm1uGYAyAIkc2AAEbiN1x_a8258.jpg
     * id : 907125514097664
     * createTime : 2018-08-29 16:58:22
     */

    private List<DataEntity> data;

    public void setStatus(int status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(List<DataEntity> data) {
        this.data = data;
    }

    public int getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }

    public List<DataEntity> getData() {
        return data;
    }

    public static class DataEntity implements Serializable{
        public String firstLetter;//首字母:  LogUtil
        public String namePinYin;//拼音:  LIANGCHAOJIE
        private String phone;
        private int schedule;
        private String meid;
        private String phoneModel;
        private String cardNo;
        private String cardFaceUrl;
        private String cardConUrl;
        private String cardName;
        private String sex;
        private String race;
        private String birthday;
        private String cardAddress;
        private String cardTerm;
        private String belongTo;
        private String avatar;
        private String firstFaceUrl;
        private String secondFaceUrl;
        private String thirdlyFaceUrl;
        private long id;
        private String createTime;

//         this.namePinYin = Pinyin.toPinyin(name, "");
//        firstLetter = namePinYin.substring(0,1);

        public String getFirstLetter() {
            return firstLetter;
        }

        public void setFirstLetter(String firstLetter) {
            this.firstLetter = namePinYin.substring(0,1);
        }

        public String getNamePinYin() {
            return namePinYin;
        }

        public void setNamePinYin(String namePinYin) {
            this.namePinYin = Pinyin.toPinyin(cardName, "");;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public void setSchedule(int schedule) {
            this.schedule = schedule;
        }

        public void setMeid(String meid) {
            this.meid = meid;
        }

        public void setPhoneModel(String phoneModel) {
            this.phoneModel = phoneModel;
        }

        public void setCardNo(String cardNo) {
            this.cardNo = cardNo;
        }

        public void setCardFaceUrl(String cardFaceUrl) {
            this.cardFaceUrl = cardFaceUrl;
        }

        public void setCardConUrl(String cardConUrl) {
            this.cardConUrl = cardConUrl;
        }

        public void setCardName(String cardName) {
            this.cardName = cardName;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public void setRace(String race) {
            this.race = race;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public void setCardAddress(String cardAddress) {
            this.cardAddress = cardAddress;
        }

        public void setCardTerm(String cardTerm) {
            this.cardTerm = cardTerm;
        }

        public void setBelongTo(String belongTo) {
            this.belongTo = belongTo;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setFirstFaceUrl(String firstFaceUrl) {
            this.firstFaceUrl = firstFaceUrl;
        }

        public void setSecondFaceUrl(String secondFaceUrl) {
            this.secondFaceUrl = secondFaceUrl;
        }

        public void setThirdlyFaceUrl(String thirdlyFaceUrl) {
            this.thirdlyFaceUrl = thirdlyFaceUrl;
        }

        public void setId(long id) {
            this.id = id;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getPhone() {
            return phone;
        }

        public int getSchedule() {
            return schedule;
        }

        public String getMeid() {
            return meid;
        }

        public String getPhoneModel() {
            return phoneModel;
        }

        public String getCardNo() {
            return cardNo;
        }

        public String getCardFaceUrl() {
            return cardFaceUrl;
        }

        public String getCardConUrl() {
            return cardConUrl;
        }

        public String getCardName() {
            return cardName;
        }

        public String getSex() {
            return sex;
        }

        public String getRace() {
            return race;
        }

        public String getBirthday() {
            return birthday;
        }

        public String getCardAddress() {
            return cardAddress;
        }

        public String getCardTerm() {
            return cardTerm;
        }

        public String getBelongTo() {
            return belongTo;
        }

        public String getAvatar() {
            return avatar;
        }

        public String getFirstFaceUrl() {
            return firstFaceUrl;
        }

        public String getSecondFaceUrl() {
            return secondFaceUrl;
        }

        public String getThirdlyFaceUrl() {
            return thirdlyFaceUrl;
        }

        public long getId() {
            return id;
        }

        public String getCreateTime() {
            return createTime;
        }
    }
}

